from django.urls import path ,re_path
from verifications import views

app_name = 'verifications'

urlpatterns =[
    # re_path(r'^image_codes/(?P<image_code_id>[\w-]+)/$', view=views.ImageCodeView.as_view(), name="image_code"),
    # 正则匹配,只做了解
    # image_code_id为uuid格式
    path('image_codes/<uuid:image_code_id>/',views.ImageCode.as_view(),name='image_codes'),
    re_path('usernames/(?P<username>\w{5,20})/', views.CheckUsernameView.as_view(),name='check_username'),
]



